package com.wxmblog.photo.dao;

import com.wxmblog.photo.common.rest.request.product.admin.ProductAdminRequest;
import com.wxmblog.photo.common.rest.request.product.front.ProductIndexRequest;
import com.wxmblog.photo.common.rest.response.product.admin.ProductResponse;
import com.wxmblog.photo.common.rest.response.product.front.ProductIndexResponse;
import com.wxmblog.photo.entity.ProductEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 备注
 *
 * @author wanglei
 * @email 378526425@qq.com
 * @date 2023-06-20 15:24:40
 */
@Mapper
public interface ProductDao extends BaseMapper<ProductEntity> {

    List<ProductResponse> getPage(ProductAdminRequest request);

    ProductResponse info(Integer id);

    List<ProductIndexResponse> frontPage(ProductIndexRequest request);

    List<ProductIndexResponse> recommend(ProductIndexRequest request);

    List<ProductIndexResponse> downloadRecord(Integer userId);

    List<ProductIndexResponse> collectRecord(Integer userId);

    List<ProductIndexResponse> viewRecord(Integer userId);
}
